<?php
declare (strict_types=1);

namespace app\api\controller;

use app\common\controller\ApiCommonBase;
use app\common\service\ToolService;
use hg\apidoc\annotation as Apidoc;

/**
 * 客户端
 * @package app\api\controller3
 */
class Client extends ApiCommonBase
{
    /**
     * 初始化
     * @author 贾二小
     * @since 2021/10/23
     */
    public function initialize()
    {
        parent::initialize();
    }

    /**
     * @Apidoc\Title("本地IP地址")
     * @author 贾二小
     * @since 2021/10/23
     */
    public static function ip()
    {
        return ToolService::getClientIp(0, true);
    }
}